package com.changzhi.util;

import java.awt.image.BufferedImage;

public class ZXingQR_code {

	/**
	 * 生成二维码（带内嵌的logo）
	 *
	 * @param imagePath
	 * @param format
	 * @param content
	 * @param width
	 * @param height
	 * @param logopath
	 */
	public void drawWord(String imagePath, String format, String content, int width, int height, String logopath) {
		try {
			ZXingUtil.encodeimage(imagePath, "JPEG", content, 100, 100, logopath);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}